package editor
{
	import UIFree.ObjectEvent;
	
	import UIFree.uif_component;
	
	import flash.events.MouseEvent;

	public class pi_userPhoto extends pi_previewItem {
		public function pi_userPhoto(index: int, parent:uif_component, ax:int=0, ay:int=0, 
									awidth:int=0, aheight:int=0, userData: *=null, styleClass:String='') {
			super(index, parent, ax, ay, awidth, aheight, userData, styleClass);
			if (_dataItem != null) _prevImage.loadSource(_dataItem.src_small);
		}
		
		override protected function checkItemSelect(item: Object): Boolean {
			return scrollArea.selectItem.object.src == _dataItem.src;
		}
	}
}